Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iteration over SAM header lines and header expression filtering #1351

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jmarshall
Copy link
Member

@jmarshall jmarshall commented Nov 2, 2021

A proposal to add API functions allowing user code to iterate over all header lines in order. Then with a way of referencing a particular generic header line established, we can add a sam_hdr_passes_filter() function to enable using filter expressions on SAM header lines.

Draft because the proposed basic iteration API (and everything else) is still in flux: the _line_ in the names can probably be removed, and I am considering changing to C++-esque begin/end terminology (which is an option for a SAM aux field iterator, and it would be good to use the same terminology for both) instead of first/next.

@jmarshall
Copy link
Member Author

Draft because the proposed basic iteration API (and everything else) is still in flux: the line in the names can probably be removed

Updated to a more final version of the proposed API names. Still needs some test cases probably…

@jmarshall
Copy link
Member Author

jmarshall commented Nov 9, 2021

(CI failures are because Cirrus's catalina-base image contains an outdated and now-broken brew. See cirruslabs/macos-image-templates#37; apparently Catalina is too old 🤣 and is deprecated on Cirrus.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants